<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>Zend Framework 0.8 - Zend Framework Manual</title>

    <link href="../css/shCore.css" rel="stylesheet" type="text/css" />
    <link href="../css/shThemeDefault.css" rel="stylesheet" type="text/css" />
    <link href="../css/styles.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Zend Framework</h1>
<h2>Programmer's Reference Guide</h2>
<ul>
    <li><a href="../en/migration.08.html">Inglês (English)</a></li>
    <li><a href="../pt-br/migration.08.html">Português Brasileiro (Brazilian Portuguese)</a></li>
</ul>
<table width="100%">
    <tr valign="top">
        <td width="85%">
            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="migration.09.html">Zend Framework 0.9</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="migration.html">Notas de Migra&ccedil;&atilde;o do Zend Framework</a></span><br />
                        <span class="home"><a href="manual.html">Guia de Refer&ecirc;ncia do Programador</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="migration.06.html">Zend Framework 0.6</a></div>
                    </td>
                </tr>
            </table>
<hr />
<div id="migration.08" class="section"><div class="info"><h1 class="title">Zend Framework 0.8</h1></div>
    

    <p class="para">
        When upgrading from a previous release to Zend Framework 0.8 or higher you
        should note the following migration notes.
    </p>

    <div class="section" id="migration.08.zend.controller"><div class="info"><h1 class="title">Zend_Controller</h1></div>
        

        <p class="para">
            Per previous changes, the most basic usage of the <acronym class="acronym">MVC</acronym> components
            remains the same:
        </p>

        <pre class="programlisting brush: php">
Zend_Controller_Front::run(&#039;/path/to/controllers&#039;);
</pre>


        <p class="para">
            However, the directory structure underwent an overhaul, several
            components were removed, and several others either renamed or added.
            Changes include:
        </p>

        <ul class="itemizedlist">
            <li class="listitem">
                <p class="para">
                    <span class="classname">Zend_Controller_Router</span> was removed in favor of
                    the rewrite router.
                </p>
            </li>

            <li class="listitem">
                <p class="para">
                    <span class="classname">Zend_Controller_RewriteRouter</span> was renamed to
                    <span class="classname">Zend_Controller_Router_Rewrite</span>, and promoted to
                    the standard router shipped with the framework;
                    <span class="classname">Zend_Controller_Front</span> will use it by default if
                    no other router is supplied.
                </p>
            </li>

            <li class="listitem">
                <p class="para">
                    A new route class for use with the rewrite router was
                    introduced,
                    <span class="classname">Zend_Controller_Router_Route_Module</span>; it covers
                    the default route used by the <acronym class="acronym">MVC</acronym>, and has support for <a href="zend.controller.modular.html" class="link">controller
                        modules</a>.
                </p>
            </li>

            <li class="listitem">
                <p class="para">
                    <span class="classname">Zend_Controller_Router_StaticRoute</span> was renamed
                    to <span class="classname">Zend_Controller_Router_Route_Static</span>.
                </p>
            </li>

            <li class="listitem">
                <p class="para">
                    <span class="classname">Zend_Controller_Dispatcher</span> was renamed
                    <span class="classname">Zend_Controller_Dispatcher_Standard</span>.
                </p>
            </li>

            <li class="listitem">
                <p class="para">
                     <span class="methodname">Zend_Controller_Action::_forward()</span>&#039;s arguments
                    have changed. The signature is now:
                </p>

                <pre class="programlisting brush: php">
final protected function _forward($action,
                                  $controller = null,
                                  $module = null,
                                  array $params = null);
</pre>


                <p class="para">
                    <var class="varname">$action</var> is always required; if no controller is
                    specified, an action in the current controller is assumed.
                    <var class="varname">$module</var> is always ignored unless
                    <var class="varname">$controller</var> is specified. Finally, any
                    <var class="varname">$params</var> provided will be appended to the
                    request object. If you do not require the controller or
                    module, but still need to pass parameters, simply specify
                    <b><tt>NULL</tt></b> for those values.
                </p>
            </li>
        </ul>
    </div>
</div>
        <hr />

            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="migration.09.html">Zend Framework 0.9</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="migration.html">Notas de Migra&ccedil;&atilde;o do Zend Framework</a></span><br />
                        <span class="home"><a href="manual.html">Guia de Refer&ecirc;ncia do Programador</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="migration.06.html">Zend Framework 0.6</a></div>
                    </td>
                </tr>
            </table>
</td>
        <td style="font-size: smaller;" width="15%"> <style type="text/css">
#leftbar {
	float: left;
	width: 186px;
	padding: 5px;
	font-size: smaller;
}
ul.toc {
	margin: 0px 5px 5px 5px;
	padding: 0px;
}
ul.toc li {
	font-size: 85%;
	margin: 1px 0 1px 1px;
	padding: 1px 0 1px 11px;
	list-style-type: none;
	background-repeat: no-repeat;
	background-position: center left;
}
ul.toc li.header {
	font-size: 115%;
	padding: 5px 0px 5px 11px;
	border-bottom: 1px solid #cccccc;
	margin-bottom: 5px;
}
ul.toc li.active {
	font-weight: bold;
}
ul.toc li a {
	text-decoration: none;
}
ul.toc li a:hover {
	text-decoration: underline;
}
</style>
 <ul class="toc">
  <li class="header home"><a href="manual.html">Guia de Refer&ecirc;ncia do Programador</a></li>
  <li class="header up"><a href="manual.html">Guia de Refer&ecirc;ncia do Programador</a></li>
  <li class="header up"><a href="migration.html">Notas de Migra&ccedil;&atilde;o do Zend Framework</a></li>
  <li><a href="migration.110.html">Zend Framework 1.10</a></li>
  <li><a href="migration.19.html">Zend Framework 1.9</a></li>
  <li><a href="migration.18.html">Zend Framework 1.8</a></li>
  <li><a href="migration.17.html">Zend Framework 1.7</a></li>
  <li><a href="migration.16.html">Zend Framework 1.6</a></li>
  <li><a href="migration.15.html">Zend Framework 1.5</a></li>
  <li><a href="migration.10.html">Zend Framework 1.0</a></li>
  <li><a href="migration.09.html">Zend Framework 0.9</a></li>
  <li class="active"><a href="migration.08.html">Zend Framework 0.8</a></li>
  <li><a href="migration.06.html">Zend Framework 0.6</a></li>
 </ul>
 </td>
    </tr>
</table>

<script type="text/javascript" src="../js/shCore.js"></script>
<script type="text/javascript" src="../js/shAutoloader.js"></script>
<script type="text/javascript" src="../js/main.js"></script>

</body>
</html>